package com.project.bean;

import java.util.List;

/**
 * 房间实体类
 */
public class RoomBean {
    /**
     * 房间编号
     */
    private Integer roomId;

    /**
     * 房间地址
     */
    private String roomAddress;

    /**
     * 房间可容纳人数
     */
    private Integer roomCanInNum;

    /**
     * 房间状态
     */
    private String roomStatus = "正常";

    /**
     * 房间类型
     */
    private String roomGender;

    /**
     * 房间已住人数（业务属性）
     */
    private  Integer roomInNum;

    /**
     * 学生集合
     */
    private List<StuBean> stuList;

    public RoomBean() {
    }

    public RoomBean(Integer roomId, String roomAddress, Integer roomCanInNum, String roomStatus, String roomGender, Integer roomInNum, List<StuBean> stuList) {
        this.roomId = roomId;
        this.roomAddress = roomAddress;
        this.roomCanInNum = roomCanInNum;
        this.roomStatus = roomStatus;
        this.roomGender = roomGender;
        this.roomInNum = roomInNum;
        this.stuList = stuList;
    }

    public RoomBean(String roomAddress, Integer roomCanInNum, String roomGender) {
        this.roomAddress = roomAddress;
        this.roomCanInNum = roomCanInNum;
        this.roomGender = roomGender;
    }

    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }

    public String getRoomAddress() {
        return roomAddress;
    }

    public void setRoomAddress(String roomAddress) {
        this.roomAddress = roomAddress;
    }

    public Integer getRoomCanInNum() {
        return roomCanInNum;
    }

    public void setRoomCanInNum(Integer roomCanInNum) {
        this.roomCanInNum = roomCanInNum;
    }

    public String getRoomStatus() {
        return roomStatus;
    }

    public void setRoomStatus(String roomStatus) {
        this.roomStatus = roomStatus;
    }

    public String getRoomGender() {
        return roomGender;
    }

    public void setRoomGender(String roomGender) {
        this.roomGender = roomGender;
    }

    public Integer getRoomInNum() {
        return roomInNum;
    }

    public void setRoomInNum(Integer roomInNum) {
        this.roomInNum = roomInNum;
    }

    public List<StuBean> getStuList() {
        return stuList;
    }

    public void setStuList(List<StuBean> stuList) {
        this.stuList = stuList;
    }

    @Override
    public String toString() {
        return "RoomBean{" +
                "roomId=" + roomId +
                ", roomAddress='" + roomAddress + '\'' +
                ", roomCanInNum=" + roomCanInNum +
                ", roomStatus='" + roomStatus + '\'' +
                ", roomGender='" + roomGender + '\'' +
                ", roomInNum=" + roomInNum +
                ", stuList=" + stuList +
                '}'+"\n";
    }
}
